<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="includes_Login" %>

<script>
    function loginlayer() {
        document.getElementById('login2').style.display = 'block';
        document.getElementById('login1').style.display = 'none';
    }
    
    function viewDocProfile(docId) {
        window.location.href = "doctor/DoctorsDetails.aspx?id=" + docId;
        return false;
    }

    function showReglink() {
        if (document.getElementById("regUser").style.display == 'none') {
            document.getElementById("regUser").style.display = 'block';
        }
        else {
            document.getElementById("regUser").style.display = 'none';
        }
    }

    function checkLogin(txtemail, txtpwd) {
        if (document.getElementById(txtemail).value == '') {
            alert("Please enter email id");
            return false;
        }
        if (document.getElementById(txtpwd).value == '') {
            alert("Please enter password");
            return false;
        }
        return true;
    }
</script>
<div class="heading_inner">
    <div class="heading_topic">
        <h2><% =pageHeading %></h2>
        <asp:Label ID="lblError" runat="server" Visible="false" ForeColor="Red" Font-Bold="true" Style="float: right"></asp:Label>
        <br />
        <span id="btnFP" runat="server" style="font-size: 19px; color: #F28212; font-family: verdana; font-weight: bold; text-decoration: none; margin: 10px 0px 0px 10px; float:left ">
            Click to go to your                                    
                <asp:LinkButton runat="server" ID="lnkFacePage" Text="Doctor Face Page" Style="font-size: 19px; color: #0066CC; font-family: verdana; font-weight: bold; text-decoration: underline;"
                    OnClick="lnkFacePage_Click"></asp:LinkButton>

        </span>
        <span id="spnScrl" runat="server"  visible="false" style="font-size: 19px; color: #F28212; font-family: verdana; font-weight: bold; text-decoration: none; margin: 10px 0px 0px 10px; float:left ">
        Scroll Down to Register as a Patient or User.
        </span>
    </div>
</div>

<div class="cl"></div>

<br />
<div class="banner">
    <div class="fl">
      
        <asp:Image runat="server" ID="PageImg" Width="457px" Height="280px"  />
    </div>
    <div class="form-block2 fl">
    
                <div id="login1" style="border-spacing:0px;border-collapse:collapse;padding:5px 10px;border-radius:5px;">
                    <% if (Session["userID"].ToString() == "")
                       {
                    %>
                    <table style="background-color:#F4F4F4;width:100%;border-spacing:0px;border-collapse:collapse;padding:5px 10px;" >
                        <tr>
                            <td style="color: rgb(242, 130, 18);text-align:center;font-size:14px;font-weight:bold">Getting Started</td>
                        </tr>
                        <tr>
                            <td style="height:auto">Start making informed choices regarding your health care.<br />
                                Create your FindaDoc account now.<br />
                                It&rsquo;s simple and it&rsquo;s free.</td>
                        </tr>
                        <tr>
                            <td style="height:auto;text-align:center" align="center">
                                <span onclick="showReglink()">
                                    <input type="button" id="regBtn" runat="server" class="buttonclass" value="Register Now" title="Register Now" />
                                    <%--  <img src="<%=Session["strHttps"]%>images/btn-register-now.gif" alt=
                                                width="130" height="30" border="0" />--%></span>
                                <div id="regUser" style="display: none;" align="center">
                                    <table>
                                        <tr>
                                            <td>
                                                <a href="<%=Session["strHttps"]%>doctor/AccessProfile.aspx" class="buttonclass">Doctor Registration</a></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <a href="<%=Session["strHttps"]%>dentist/DentistAccessProfile.aspx" class="buttonclass">Dentist Registration</a></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <a href="<%=Session["strHttps"]%>patient/patient_registration.aspx" class="buttonclass">Patient Registration</a></td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td height="26" align="center">
                                <a href="<%=Session["strHttps"]%>doctor/doctorlogin.aspx"><strong>Already
                                                                have an account?</strong></a></td>
                        </tr>
                        <tr>
                            <td  align="center">
                                <a href="javascript:void(0)" onclick="loginlayer();" class="buttonclass">Log In Now</a></td>
                        </tr>
                        
                    </table>
                    <%
                       }
                       else
                       {
                    %>
                    <table width="205" border="0" align="center" cellpadding="0" cellspacing="0" class="general-txt">
                        <tr>
                            <td height="48" class="blue-hd">Welcome
                                        <% =Session["LoginName"]%>                                        
                            </td>
                        </tr>

                        <% if (Session["userType"].ToString() == "Doctor" && Session["DoctorType"].ToString() == "Doctor")
                           {%>
                        <!-- ADD DOCTORS  CONTENTS AT 16/02/2008  -->

                        <tr style="height: 18px;">
                            <td >
                                <li>
                                    <asp:LinkButton runat="server" ID="linkEditDrAccount" Text="Edit Account" OnClick="linkEditDrAccount_Click1"></asp:LinkButton></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li>
                                    <asp:LinkButton ID="lnkViewProfile" runat="server" OnCommand="lnkViewProfile_Click">View Profile</asp:LinkButton></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>doctor/doctorChangePassword.aspx">Change Password</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>doctor/doctorResources.aspx?id=<%=Session["userId"]%>">Doctor Resources</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>Community/AddUpdateBlog.aspx">Add/Edit Blog</a></li>
                            </td>
                        </tr>
                         <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>Community/AddBlog.aspx">Add Your Blog</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyPatient.aspx">My Patients</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyProfile.aspx">My Profile</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyRating.aspx">My Ratings</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyMessageBoard.aspx">My MessageBoard</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/ViewBlog.aspx">My Blog</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Community/Community.aspx">Doc-Friend</a></li>
                            </td>
                        </tr>
                        <!-- END  -->
                        <%}
                           else if (Session["userType"].ToString() == "Doctor" && Session["DoctorType"].ToString() == "Dentist")
                           {%>
                        <!-- ADD DENTIST CONTENTS AT 16/02/2008  -->

                        <tr style="height: 18px;">
                            <td>
                                <li>
                                    <asp:LinkButton runat="server" ID="LinkButton1" Text="Edit Account" OnClick="linkEditDntAccount_Click1"></asp:LinkButton></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li>
                                    <asp:LinkButton ID="LinkButton2" runat="server" OnCommand="lnkViewDntProfile_Click">View Profile</asp:LinkButton></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>dentist/dentistChangePassword.aspx">Change Password</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>dentist/dentistResources.aspx?id=<%=Session["userId"]%>">Dentist Resources</a></li>
                            </td>
                        </tr>
                        <%--<tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>Community/AddUpdateBlog.aspx">Add/Edit Blog</a></li>
                            </td>
                        </tr>--%>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%=Session["strHttp"]%>Community/AddBlog.aspx">Add Your Blog</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyPatient.aspx">My Patients</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyProfile.aspx">My Profile</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyRating.aspx">My Ratings</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyMessageBoard.aspx">My MessageBoard</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/ViewBlog.aspx">My Blog</a></li>
                            </td>
                        </tr>
                        <tr style="height: 18px;">
                            <td>
                                <li><a href="<%= Session["strHttp"].ToString() %>Community/Community.aspx">Doc-Friend</a></li>
                            </td>
                        </tr>
                        <!-- END  -->
                        <%}
                           else
                           {%>
                        <tr>
                            <td style="height: 18px;">
                                <li><a href="<%= Session["strHttp"].ToString() %>SearchDoctors_adv.aspx"><strong>Search
                                                                Doctors</strong></a></li>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 18px;">
                                <li><a href="<%=Session["strHttp"]%>patient/patient_rate.aspx"><strong>Rate Doctors</strong></a></li>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 18px;">
                                <li><a href="<%= Session["strHttp"].ToString() %>Doctor/topDoctor.aspx"><strong>Top
                                                                Doctors</strong></a></li>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 18px;">
                                <li><a href="<%=Session["strHttp"]%>tellaFriend.aspx"><strong>Tell a Friend</strong></a></li>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 18px;">
                                <li><a href="user/usercontent.aspx"><b>My FindaDoc</b></a></li>
                            </td>
                        </tr>
                        <tr style="height: 105px;">
                            <td></td>
                        </tr>
                        <%} %>
                    </table>
                    <% } %>
                </div>
                <div id="login2" style="display: none;border-spacing:0px;border-collapse:collapse;padding:5px 10px;border-radius:5px;">
                    <%--<form id="form2" name="form1" method="post" action="">--%>
                    
                                <table style="background-color:#F4F4F4;border-spacing:0px;border-collapse:collapse;padding:5px 10px;border-radius:5px;" >
                                    <tr>
                                        <td colspan="2" align="center"></td>
                                    </tr>
                                    <tr>
                                        <td width="31%">Email ID:
                                        </td>
                                        <td width="69%">
                                            <asp:TextBox ID="txtDocEmail" runat="server" CssClass="form-txt" Style="width: 130px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td>Password:</td>
                                        <td>
                                            <asp:TextBox ID="txtDocPass" runat="server" CssClass="form-txt" Style="width: 130px"
                                                TextMode="Password"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td height="22">
                                            <asp:CheckBox Width="120px" ID="chkremberdoc" runat="server" Text="Remember Me" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td>
                                          <div class="styled-select" style="width: 110px">  <asp:DropDownList ID="rbtnlDoctorType"  runat="server" Width="130px">
                                                <asp:ListItem Value="Doctor">As a Doctor</asp:ListItem>
                                                <asp:ListItem Value="Dentist">As a Dentist</asp:ListItem>
                                                <asp:ListItem Value="Patient">As a User</asp:ListItem>
                                            </asp:DropDownList></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td  style="width:100%">
                                          <asp:Button CssClass="buttonclass" ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Login" />
                                            <input type="button" class="buttonclass"  OnClick="Reglayer()" value="Cancel" />
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td>
                                            <ul style="list-style-type: square; padding: 0; margin: 0 0 0 15px;">
                                                <li>
                                                    <asp:LinkButton ID="lnkbtnRegistration" runat="server" Text="New User" CssClass="bluelink1"
                                                        OnClick="lnkbtnRegistration_Click"></asp:LinkButton></li>
                                                <li>
                                                    <asp:LinkButton ID="lnkbtnForgetPass" runat="server" Text="Forgot Password" CssClass="bluelink1"
                                                        OnClick="lnkbtnForgetPass_Click"></asp:LinkButton></li>
                                                <li>
                                                    <asp:LinkButton ID="lnkbtnAccessProfile" runat="server" Text="Access Your Profile"
                                                        CssClass="bluelink1" OnClick="lnkbtnAccessProfile_Click"></asp:LinkButton></li>
                                            </ul>
                                        </td>
                                    </tr>
                                </table>
                          
                    <%--</form>--%>
                </div>
           
      </div>
    &nbsp;<div class="cl"></div>

</div>
<%--<table style="width: 100%; border-spacing: 0px; border-collapse: collapse; background-color: #7ebaff">
    <tr>
        <td width="551" align="center" valign="top" style="padding: 5px 0;">
           </td>
        <td width="249" style="padding: 5px 0;">
            
        </td>
    </tr>
</table>--%>
<br />
<% if (Session["ShowLayer"].ToString() == "True")
       Response.Write("<script language='javascript'>loginlayer()</script>");
%>
